package view.views;

import java.util.Vector;

import controller.FundamentalOperationsController;
import controller.FundamentalOperationsControllerImplementation;
import controller.data.fundamental.TabItemCategory;

public class TabEntrys {

	private Vector<TabItemCategory> entrys = null; // Speichert alle
															// TAB's

	/* Konstruktor */
	public TabEntrys() {
		FundamentalOperationsController fundamentalOperationsController = new FundamentalOperationsControllerImplementation();
		entrys = new Vector<TabItemCategory>(
				fundamentalOperationsController.getTabItems());
	}

	/* METHODEN */

	public TabItemCategory getEntrys(int position) {
		return entrys.get(position);
	}

	public int getSize() {
		return entrys.size();
	}

	public void inputEntry(TabItemCategory input) {
		entrys.add(input);
	}

	public void setNewEntrys(Vector<TabItemCategory> input) {
		entrys = input;
	}

	public Vector<TabItemCategory> getAllEntrys() {
		return entrys;
	}
}
